<!doctype html>
<html lang="{{ .Site.Language.Lang }}" class="{{.Params.class}} no-js">
  <head>
    {{ partial "head.html" . }}
  </head>
  <body class="td-search {{- if ne (lower .Params.cid) "" -}}{{- printf " cid-%s" (lower .Params.cid) -}}{{- end -}}">
    <header>
      {{ partial "navbar.html" . }}
      {{ block "announcement" . }}
        {{ partial "announcement.html" . }}
      {{ end }}
      {{ block "hero" . }}
        <section class="header-hero filler">
        </section>
         {{ block "hero-more" . }}{{ end }}
      {{ end }}
    </header>
    <div class="td-outer">
      <main role="main" class="td-main">
        <section class="row td-search-result">
          <div class="col-12 col-md-4 offset-md-2">
            <form class="td-sidebar__search d-flex align-items-center">
              {{ partial "search-input.html" . }}
            </form>
          </div>
          <div class="col-12 col-md-8 offset-md-2">
              <h2 class="ml-4">{{ .Title }}</h2>
          {{ if .Site.Params.gcs_engine_id }}
          <script>
            (function() {
            var cx = '{{ . }}';
            var gcse = document.createElement('script');
            gcse.type = 'text/javascript';
            gcse.async = true;
            gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
            var s = document.getElementsByTagName('script')[0];
            s.parentNode.insertBefore(gcse, s);
            })();
          </script>
          <gcse:searchresults-only></gcse:searchresults-only>
          {{ else if .Site.Params.k8s_search }}
          <script src="{{ "js/search.js" | relURL }}"></script>
          <gcse:searchresults-only linktarget="_parent">
            <div id="bing-results-container">{{ T "layouts_docs_search_fetching" }}</div>
            <div id="bing-pagination-container"></div>
          </gcse:searchresults-only>
          {{ end }}
          </div>
        </section>
      </main>
    </div>
    {{ partial "footer.html" . }}
    {{ partialCached "scripts.html" . }}
  </body>
</html>
